<%--
  Created by IntelliJ IDEA.
  User: 11
  Date: 2021/12/15
  Time: 7:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<base href="http://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/">
<script type="text/javascript" src="jquery/jquery-2.1.1.min.js" ></script>
<script type="text/javascript" src="layer/layer.js"></script>
<script>
    $(function () {
        var array = [5,8,12];
        var requestJson = JSON.stringify(array);
        $(".btn1").click(function () {
            $.ajax({
                url:'send/array',
                type:'post',
                contentType:'application/json;charset=UTF-8',
                data:requestJson,
                dataType:'json',
                success:function (res) {
                    alert(res)
                }
            })

        })

    })
</script>
<body>

<a href="test/ssm.html">测试环境</a>

<button class="btn1">send[5,8,12]</button>
</body>
</html>
